import { createRouter, createWebHistory } from 'vue-router'
import About from '../pages/about.vue'
import Home from '../pages/home.vue'
const routes = [
    {
        path: '/',
        name: 'home',
        component: Home
    },
    {
        path: '/about',
        name: 'about',
        component: About
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../pages/login.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router